package com.yager.mapper;

import com.yager.model.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    int deleteByPrimaryKey(String commentid);

    int insert(Comment record);

    int insertSelective(Comment record);

    Comment selectByPrimaryKey(String commentid);

    int updateByPrimaryKeySelective(Comment record);

    int updateByPrimaryKey(Comment record);

    String findMaxId();

    List<Comment> getCommentsByHouse(String houseid);

    List<Comment> getCommentsByOrder(String orderid);

    int getHouseCommentCount(String houseid);

    int getOrderCommentCount(String orderid);
}